package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.SystemLog;
import cn.wolfcode.crm.mapper.SystemLogMapper;
import cn.wolfcode.crm.service.ISystemLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemLogServiceImpl implements ISystemLogService {

    @Autowired
    private SystemLogMapper mapper;

    public void insert(SystemLog record) {
        mapper.insert(record);
    }

    public SystemLog selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    public List<SystemLog> selectAll() {
        return mapper.selectAll();
    }

    /*public PageResult query(QueryForObject qo) {
        int total = mapper.queryForTotal(qo);
        if (total == 0) {
            return new PageResult();
        }

        List<SystemLog> rows = mapper.queryForList(qo);
        return new PageResult(total, rows);
    }

    public void changeState(Examination record) {

    }*/
}
